<?php
require_once("rpcl/rpcl.inc.php");
require_once("config.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");
use_unit("dbtables.inc.php");

//Class definition
class DBmodule extends DataModule
{
    public $DBsxbg = null;
    public $Query1 = null;
    function loaded()
   {
      global $DbHost, $DbUser, $DbPass, $DbName;
      parent::loaded();
      $this->DBsxbg->Host = $DbHost;
      $this->DBsxbg->UserName = $DbUser;
      $this->DBsxbg->UserPassword = $DbPass;
      $this->DBsxbg->DatabaseName = $DbName;
      $this->DBsxbg->Connected = true;
   }

}

global $application;

global $DBmodule;

//Creates the form
$DBmodule=new DBmodule($application);

//Read from resource file
$DBmodule->loadResource(__FILE__);

?>